package com.fr.base.core.antlr.collections.impl;

import com.fr.base.core.antlr.collections.AST;
import com.fr.base.core.antlr.collections.ASTEnumeration;
import java.util.NoSuchElementException;

public class ASTEnumerator
  implements ASTEnumeration
{
  VectorEnumerator nodes;
  int i = 0;

  public ASTEnumerator(Vector paramVector)
  {
    this.nodes = new VectorEnumerator(paramVector);
  }

  public boolean hasMoreNodes()
  {
    synchronized (this.nodes)
    {
      return ((this.i <= this.nodes.vector.lastElement) ? 1 : false);
    }
  }

  public AST nextNode()
  {
    synchronized (this.nodes)
    {
      if (this.i > this.nodes.vector.lastElement)
        break label52;
      return ((AST)this.nodes.vector.data[(this.i++)]);
      label52: throw new NoSuchElementException("ASTEnumerator");
    }
  }
}